package com.qzsoft.zhjd.asphalt.modules.consumptionstatistics.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qzsoft.zhjd.asphalt.modules.consumptionstatistics.dto.ActCountDto;
import com.qzsoft.zhjd.asphalt.modules.consumptionstatistics.dto.ConsumptionStatisticsTableDto;
import com.qzsoft.zhjd.asphalt.modules.consumptionstatistics.dto.TheoCountDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

@Mapper
public interface ConsumptionStatisticsMapper {
    /**
     * 数据分页
     * 材料消耗偏差统计页面
     *
     * @param page
     * @param params
     * @return
     */
    IPage<ConsumptionStatisticsTableDto> reportPage(IPage<ConsumptionStatisticsTableDto> page, @Param("params") Map<String, Object> params);

    /**
     * 获取实际材料消耗
     *
     * @param params
     * @return
     */
    ActCountDto actCount(@Param("params") Map<String, Object> params);

    /**
     * 理论材料消耗
     *
     * @param params
     * @return
     */
    TheoCountDto theoCount(@Param("params") Map<String, Object> params);
}
